
#[cfg(test)]
mod tests {
    use tonic::Request;
    use tonic::transport::Channel;
    use proto_lib::{asset_service_client, QueryRequest};
    use serial_test::serial;
    #[tokio::test]
    #[serial]
    async fn call_asset_service_query() -> Result<(), Box<dyn std::error::Error>> {
        let channel = Channel::from_static("http://[::1]:50051")
            .connect()
            .await?;

        let mut client = asset_service_client::AssetServiceClient::new(channel);

        let request = Request::new(QueryRequest {
            user_id: 671,
            assets: vec![1,2,3,4,5],
        });

        let response = client.query(request).await?;
        println!("Response: {:?}", response);

        Ok(())
    }
}